# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-git-diff
pkgver=0_git20211225
_gitrev=c12e6ecb54485f764250556ffd7ccb18f8e2942b
pkgrel=1
pkgdesc="Tree-sitter grammar for 'git diff' output"
url="https://github.com/the-mikedavis/tree-sitter-git-diff"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/the-mikedavis/tree-sitter-git-diff/archive/$_gitrev/tree-sitter-git-diff-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
95ccf5a0f84c9599dcbfa9a8f549b0efaf848362eea65f411739dc09c605556c2fee1e93a9547407f279339b13b1a1637b96f560658e1b22658c558351db5307  tree-sitter-git-diff-c12e6ecb54485f764250556ffd7ccb18f8e2942b.tar.gz
"
